package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.AppInfoMapper;
import com.qfedu.openplateform.manager.entity.AppInfo;
import com.qfedu.openplateform.manager.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 孙晨杨
 * @Date: 2021/10/27/19:18
 * @Description:
 */
@Service
public class AppInfoServiceImpl implements AppInfoService {

    @Autowired
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> findAll() {
        return appInfoMapper.findAll();
    }

    @Override
    public int insert(AppInfo appInfo) {
        return appInfoMapper.insert(appInfo);
    }

    @Override
    public int delete(int id) {
        return appInfoMapper.delete(id);
    }

    @Override
    public int update(AppInfo appInfo) {
        return appInfoMapper.update(appInfo);
    }
}
